package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.BileiqiMapper;
import com.information.manage.MaintenanceRecord.pojo.Bileiqi;
import com.information.manage.MaintenanceRecord.service.BileiqiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BileiqiServiceImpl implements BileiqiService {
    @Autowired
    private BileiqiMapper bileiqiMapper;

    @Override
    public List<Bileiqi> selectAll() {
        return bileiqiMapper.selectAll();
    }

    @Override
    public void addMaintBileiqi(Bileiqi bileiqi) {
        bileiqiMapper.insert(bileiqi);
    }

    @Override
    public void updateMaintBileiqi(Bileiqi bileiqi) {
        bileiqiMapper.update(bileiqi);
    }

    @Override
    public void deleteMaintBileiqi(Integer blqid) {
        bileiqiMapper.delete(blqid);
    }

    @Override
    public void logicDeleteMaintBileiqi(Integer blqid) {
        bileiqiMapper.logicDelete(blqid);
    }
}